#ifndef PKMLPARSER_H
#define PKMLPARSER_H

#include "pdomparser.h"
#include "epoint.h"

class PKmlParser : virtual public PDomParser
{
public:
    PKmlParser();

    enum PKmlParserErr
    {
            ErrOk                =   0,
            ErrXmlFile           =   1,
            ErrXmlChildrenL      =   2,
            ErrKmlCoordinatesLat = 101,
            ErrKmlCoordinatesLon = 102,
            ErrKmlCoordinatesEle = 103
    };

    PKmlParserErr parse(const QString &file_name, bool *success);

    PKmlParserErr extractObj(EPoint &epoint);
    PKmlParserErr extractObj(QString &name, QString &descr);

private:
    QString m_contentTag_coordinates;
    QString m_contentTag_name;
    QString m_contentTag_description;

};

#endif // PKMLPARSER_H
